package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._0._1继承;

/**
 * @ClassName Test0_1
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/9 7:16 PM
 * @Version 1.0
 */
public class Test0_1 {
    public static void main(String[] args) {
        Animal[] arrayAnimal=new Animal[5];
        arrayAnimal[0] = new Cat("小花");
        arrayAnimal[1] = new Cat("阿毛");
        arrayAnimal[2] = new Cat("小黑");
        arrayAnimal[3] = new Cat("娇娇");
        arrayAnimal[4] = new Cat("咪咪");

        for(int i=0;i<5;i++){
            System.out.println(arrayAnimal[i].shout());
        }

    }
}
